package ware.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feign.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import ware.domain.WareSku;
import ware.service.WareSkuService;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 商品库存(WareSku)表控制层
 *
 * @author panghu
 * @since 2023-03-04 21:11:29
 */
@RestController
@RequestMapping("ware/wareSku")
public class WareSkuController {

    @Autowired
    private WareSkuService wareSkuService;

    @GetMapping("list")
    public R list(@RequestParam Map<String, Object> params) {
        Page<WareSku> wareInfoPage = wareSkuService.querPage(params);
        return R.ok().put("data", wareInfoPage);
    }
}

